home *** CD-ROM | disk | FTP | other *** search
- // testcout.h
- // header file for testing windows cout and cerr
-
- #include "CStrWnd.h"
- #include "ostrwnd.h"
- #include "winstrm.h"
-
- class App : public CWinApp
- {
- public:
- BOOL InitInstance ();
- int ExitInstance ();
-
- #if defined (_DEBUG)
- void set_exit_code (int code)
- // only update if not already set
- {if (exit_code == 0) exit_code = code;}
- #endif
-
- private:
- winstreambuf * cerrbuf, * coutbuf;
- ostreamWnd * cerr_window;
- #if defined (_DEBUG)
- int exit_code;
- CMemoryState start, end, difference;
- #endif
- };
-
- class CMainWindow : public CMDIFrameWnd
- {
- public:
- CMainWindow ();
- afx_msg void OnClose ();
- afx_msg void OnAbout ();
- afx_msg void OnTest ();
-
- DECLARE_MESSAGE_MAP ();
- };
-